﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;


namespace FSS.UI
{
    public class UIWnd : MonoBehaviour
    {
        public string wndName;
        public void InitUIElements(Transform tr)
        {
            OnSetUIAttr(tr.name, tr.gameObject);
            for (int i = 0; i < tr.childCount; ++i)
            {
                InitUIElements(tr.GetChild(i));
            }
        }

        public virtual void OnSetUIAttr(string name, GameObject go)
        {
            Debug.Log("UIWnd.OnNodeAsset");
        }
        public virtual void OnBtnClick(string name, GameObject go)
        {
            Debug.Log("UIWnd.OnButtonClick");
        }

        public virtual void OnWndCreate()
        {

        }

        public virtual void OnWndShow()
        {

        }

        public virtual void OnWndHide()
        {

        }

        public virtual void OnWndDestroy()
        {

        }
    }
}

